#include "AGXKit.h"

AGXKit::AGXKit() {
    agxModel = "AGX Xavier";
    agxTOPS = 32;
    cudaCores = 512;
    tensorCores = 64;
    memory = 32;
    storage = 32;
}

void AGXKit::print() const {
    cout << "AGX 套件型号: " << agxModel << endl;
    cout << "AI TOPS: " << agxTOPS << endl;
    cout << "CUDA 核心: " << cudaCores << endl;
    cout << "Tensor 核心: " << tensorCores << endl;
    cout << "显存: " << memory << " GB" << endl;
    cout << "存储: " << storage << " GB" << endl;
}

void AGXKit::save(ofstream& outFile) const {
    outFile << agxModel << endl;
    outFile << agxTOPS << endl;
    outFile << cudaCores << endl;
    outFile << tensorCores << endl;
    outFile << memory << endl;
    outFile << storage << endl;
}
